# Maintainer:
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Max Roder <maxroder@web.de>
# Contributor: Nathan Owe <ndowens.aur at gmail dot com>

pkgname=libhx
pkgver=4.12
pkgrel=1
pkgdesc='A library providing queue, tree, I/O and utility functions'
arch=(loong64 x86_64)
url='http://libhx.sourceforge.net/'
license=(GPL)
depends=(glibc)
source=(https://inai.de/files/libhx/libHX-$pkgver.tar.{xz,asc})
sha256sums=('f72e06cf6d86d08d53a5352e643e6ff55cbf3631513c13e3dc68ef298be951b7'
            'SKIP')
validpgpkeys=(BCA0C5C309CAC569E74A921CF76EFE5D0C223A8F) # Jan Engelhardt <jengelh@inai.de> https://inai.de/about/

build() {
  cd libHX-$pkgver
  ./configure --prefix=/usr
  make
}

package() {
  cd libHX-$pkgver
  make DESTDIR="$pkgdir" install
}
